<?php
/**
 * Although at this point there is very little reason to justify using a partial rather than
 * an include for this form, eventually I may want to use this form somewhere else, in which
 * case it will me much easier to do if it is a partial. All "form partials" should be named
 * like this one. formname.form.phtml inside of the view folder of the controller it relates
 * closest to. Like this one... product.form.phtml is in /scripts/product/. It's all pretty 
 * easy, so don't forget to do it consistently.
 * 
 * @todo This is a temporary layout for forms. I don't intend to always lay them out inside
 * of html tables. The problem is I don't know what I DO want to display them in. I still
 * haven't figured out what, semantically, forms fit into. I am leaning towards a list of
 * some kind. Most likely dl/dt/dd/. 
 */
?>
<fieldset>
	<legend>Edit Product</legend>
	<form method="post" action="<?= $this->routeUrl('admin_product_edit', array('product_id' => $this->product['product_id'])) ?>">
		<?= $this->partial('product/form.phtml', array(
			'product' => $this->product, // The product data being edited
			'errors' => $this->errors, // An array of the form's error messages
			'required' => $this->required // An array of required form fields
		)) ?>
	</form>
</fieldset>